home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 15
/
Aminet 15 - Nov 1996.iso
/
Aminet
/
dev
/
gcc
/
ixemsdk.lha
/
man
/
cat3
/
getmntinfo.0
< prev
next >
Wrap
Text File
|
1996-09-02
|
2KB
|
49 lines
GETMNTINFO(3) UNIX Programmer's Manual GETMNTINFO(3)
NNAAMMEE
ggeettmmnnttiinnffoo - get information about mounted file systems
SSYYNNOOPPSSIISS
##iinncclluuddee <<ssyyss//ppaarraamm..hh>>
##iinncclluuddee <<ssyyss//uuccrreedd..hh>>
##iinncclluuddee <<ssyyss//mmoouunntt..hh>>
_i_n_t
ggeettmmnnttiinnffoo(_s_t_r_u_c_t _s_t_a_t_f_s _*_*_m_n_t_b_u_f_p, _i_n_t _f_l_a_g_s)
DDEESSCCRRIIPPTTIIOONN
The ggeettmmnnttiinnffoo() function returns an array of statfs structures describ-
ing each currently mounted file system (see statfs(2)).
The ggeettmmnnttiinnffoo() function passes its _f_l_a_g_s parameter transparently to
getfsstat(2).
RREETTUURRNN VVAALLUUEESS
On successful completion, ggeettmmnnttiinnffoo() returns a count of the number of
elements in the array. The pointer to the array is stored into _m_n_t_b_u_f_p.
If an error occurs, zero is returned and the external variable _e_r_r_n_o is
set to indicate the error. Although the pointer _m_n_t_b_u_f_p will be unmodi-
fied, any information previously returned by ggeettmmnnttiinnffoo() will be lost.
EERRRROORRSS
The ggeettmmnnttiinnffoo() function may fail and set _e_r_r_n_o for any of the errors
specified for the library routines getfsstat(2) or malloc(3).
SSEEEE AALLSSOO
getfsstat(2), statfs(2), mount(2), mount(8)
HHIISSTTOORRYY
The ggeettmmnnttiinnffoo() function first appeared in 4.4BSD.
BBUUGGSS
The ggeettmmnnttiinnffoo() function writes the array of structures to an internal
static object and returns a pointer to that object. Subsequent calls to
ggeettmmnnttiinnffoo() will modify the same object.
The memory allocated by ggeettmmnnttiinnffoo() cannot be free(2)'d by the applica-
tion.
BSD Experimental June 9, 1993 1